<!-- BEGIN items -->
<div class="item_div">
	<div class="item_name">{name}</div>
    <div class="item_description">{content}</div>
</div>
<!-- END -->
{pager}



<div id='guestbook_form'>
	<table >
		<tr>
			<td>{GUESTBOOK_NAME}</td>
			<td><input type="text" class="inputtext" id='guestbook_name' /></td>
		</tr>
		<tr>
			<td>{GUESTBOOK_EMAIL}</td>
			<td><input type="text" class="inputtext" id='guestbook_email' /></td>
		</tr>
				
	</table>
	<textarea id='guestbook_content' cols="50" rows="5"></textarea>
	<br />
	<input type="button" onclick="guestbook_submit()" value="{GUESTBOOK_SUBMIT}" />
</div>
<br />

<script>
function guestbook_submit()
{
	var data = 
	{
		name: $('#guestbook_name').val(),
		email:$('#guestbook_email').val(),
		content:$('#guestbook_content').val()
	};
	$.post('?p=ajax&m=new_guestbook',data,function(s)
	{
		if (s == 'success')
			window.location.reload();
		else
			alert(s);
	});
}
</script>